﻿@{
    ViewBag.Title = "SimpleRegular";
    Layout = "~/Views/Shared/_Page.cshtml";
}

<h2>Simple Regular</h2

<div>
    g - Global matching
    m - Multiline
    i - Case-insensitive matching
</div>


<script type="text/javascript">
    window.onload = function () {
        var a1 = "abc123456XYZ";
        var a2 = a1.replace(/[a-z]/gi, "");
        ZEUS.DEBUG.log("Original String: " + a1);
        ZEUS.DEBUG.log("After Regular Replace: " + a2);
        ZEUS.DEBUG.log("--------------------------------------------");
        var a3 = "c:\\windows\\program files";
        var a4 = a3.replace(/\\/gi, "|");
        ZEUS.DEBUG.log("Original String: " + a3);
        ZEUS.DEBUG.log("After Regular Replace: " + a4);
    }
</script>